package com.devsoft.foodfrenzy;

import java.util.ArrayList;

import org.andengine.entity.sprite.Sprite;
import com.badlogic.gdx.physics.box2d.Body;

public class PowerUp {
	
	private String name;	//"Double Pan", "Score Multiplier", "Speed boost", "Slow time"
	private Sprite sprite;
	private Body body;
	private int pos_x;
	private int pos_y;
	public static ArrayList <PowerUp> powerList = new ArrayList <PowerUp> ();
	
	
	public PowerUp(){}
	
	
	public PowerUp(String name, Sprite image)
	{
		this.name = name;
		this.sprite = image;
		
	}
	
	
	public String getName()
	{
		return name;
		
	}
	
	
	public int getPositionX()
	{
		return pos_x;
		
	}
	
	
	public int getPositionY()
	{
		return pos_y;
		
	}
	
	public void setPositionX(int pos)
	{
		this.pos_x = pos;
		
	}
	
	
	public void setPositionY(int pos)
	{
		this.pos_y = pos;
		
	}
	
	public Sprite getSprite()
	{
		return sprite;
		
	}
	
	public void setBody(Body body)
	{
		this.body = body;
		
	}
	
	
	public Body getBody()
	{
		return body;
		
	}
	
	public static void createPowerUp(PowerUp power)
	{
		powerList.add(power);
		
	}
	
	
	public static ArrayList <PowerUp> getPowerUpList()
	{
		return powerList;
		
	}
	
	
	public ArrayList <PowerUp> removePowerUp(ArrayList <PowerUp> currentPower, PowerUp power)	//removes food fully cooked on screen
	{
		currentPower.remove(power);
		
		//add points to player score
		
		return currentPower;
		
	}
	
}
